package com.damage.purchase_dept.mapper;

import com.damage.common.entity.PurchasePlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IPurchasePlanMapper {

    Integer insert(PurchasePlan purchasePlan);

    Integer setProcessInstanceId(@Param("id") Integer id,
                                 @Param("processInstanceId") String processInstanceId);

    PurchasePlan findById(Integer id);

    List<PurchasePlan> findByState(Integer state);

    Integer update(PurchasePlan purchasePlan);

    Integer deleteById(Integer id);
}
